package org.krtrain.sports.player;

import java.util.ArrayList;
import java.util.List;

import org.krtrain.sports.team.Team;
import org.kuali.rice.core.api.mo.common.active.Inactivatable;
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;

/**
 * @author Kuali Rice Team (rice.collab@kuali.org)
 */
public class Player extends PersistableBusinessObjectBase implements Inactivatable {
    private static final long serialVersionUID = -998121111280079397L;

    private Integer number;
    private String firstName;
    private String lastName;
    private List<String> positions;
    private String year;
    private boolean active;
    private String teamName;

    private Team team;

    public Player() {
        super();
        positions = new ArrayList<String>();
    }

    @Override
    public String toString() {
        String str = "";
        if (number != null) {
            str = "number:" + number;
        }

        return str;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public List<String> getPositions() {
        return positions;
    }

    public void setPositions(List<String> positions) {
        this.positions = positions;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
}
